package com.noodles.mall.vo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.noodles.mall.entity.Role;
import lombok.Data;

import java.sql.Date;
import java.util.List;

@Data
public class UserVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer childId;

    private String username;

    private String nickname;

    private String mobile;

    private String email;

    private String address;

    private Boolean sex;

    private String avatarUrl;

    private Boolean isEnabled;

    private Date createdTime;

    private Date updatedTime;

    @TableField(exist = false)
    private List<Role> roleList;
}
